﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bluebunnie
{
    public class Permission
    {
        private Permission() {}

        public bool CanOpen { get; private set; }
        public bool CanCreate { get; private set; }
        public bool CanEdit { get; private set; }
        public bool CanDelete { get; private set; }
        public bool CanChangePermission { get; private set; }

        public static Permission GetPermission(int uid, int featureid)
        {
            return new Permission();
        }

        public bool SetPermission(int uid, int featureid, bool canopen, bool cancreate, bool canedit, bool candelete)
        {
            if (CanChangePermission)
            {
                return true;
            }
            return false;
        }
    }
}
